package com.yellowpage.wf.data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.SEQUENCE;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * WorkHistory entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "WF_WORK_HISTORY")
public class WorkHistory implements java.io.Serializable {

	// Fields

	private Long workHistoryId;
	private Long nodeInstanceId;
	private Long participantsId;
	private String participant;
	private String value01;
	private String value02;
	private String value03;
	private String value04;
	private String value05;

	// Constructors

	/** default constructor */
	public WorkHistory() {
	}

	/** full constructor */
	public WorkHistory(Long nodeInstanceId, Long participantsId,
			String participant, String value01, String value02, String value03,
			String value04, String value05) {
		this.nodeInstanceId = nodeInstanceId;
		this.participantsId = participantsId;
		this.participant = participant;
		this.value01 = value01;
		this.value02 = value02;
		this.value03 = value03;
		this.value04 = value04;
		this.value05 = value05;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "identity")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "WORK_HISTORY_ID", unique = true, nullable = false, precision = 18, scale = 0)
	public Long getWorkHistoryId() {
		return this.workHistoryId;
	}

	public void setWorkHistoryId(Long workHistoryId) {
		this.workHistoryId = workHistoryId;
	}

	@Column(name = "NODE_INSTANCE_ID", precision = 18, scale = 0)
	public Long getNodeInstanceId() {
		return this.nodeInstanceId;
	}

	public void setNodeInstanceId(Long nodeInstanceId) {
		this.nodeInstanceId = nodeInstanceId;
	}

	@Column(name = "PARTICIPANTS_ID", precision = 18, scale = 0)
	public Long getParticipantsId() {
		return this.participantsId;
	}

	public void setParticipantsId(Long participantsId) {
		this.participantsId = participantsId;
	}

	@Column(name = "PARTICIPANT", length = 128)
	public String getParticipant() {
		return this.participant;
	}

	public void setParticipant(String participant) {
		this.participant = participant;
	}

	@Column(name = "VALUE_01", length = 256)
	public String getValue01() {
		return this.value01;
	}

	public void setValue01(String value01) {
		this.value01 = value01;
	}

	@Column(name = "VALUE_02", length = 256)
	public String getValue02() {
		return this.value02;
	}

	public void setValue02(String value02) {
		this.value02 = value02;
	}

	@Column(name = "VALUE_03", length = 256)
	public String getValue03() {
		return this.value03;
	}

	public void setValue03(String value03) {
		this.value03 = value03;
	}

	@Column(name = "VALUE_04", length = 256)
	public String getValue04() {
		return this.value04;
	}

	public void setValue04(String value04) {
		this.value04 = value04;
	}

	@Column(name = "VALUE_05", length = 256)
	public String getValue05() {
		return this.value05;
	}

	public void setValue05(String value05) {
		this.value05 = value05;
	}

}